<link rel="stylesheet" href="__STATIC__/css/wapcomment.css"> 
	<div class="WapCommentBox">
		<div class="head">
			<div class="tag">全部评论({$total})</div>
			<div class="more"><button type="butter" onclick="post_comment(0)">发表评论</button></div>
		</div>
		<div class="ListComment">
			{volist name="listdb" id="rs"}
				<ul class="lists" id="comment_cnt_{$rs.id}">
					<ol class="icon"><a href="{:get_url('user',$rs.uid)}"><img src="{$rs.icon}" onerror="this.src='__STATIC__/images/nobody.gif'"/></a></ol>
					<li class="infos">
						<div class="name"><a href="{:murl('member/msg/add',['uid'=>$rs.uid])}">{$rs.username}</a></div>
						<div class="comment">{$rs.content}</div>
						<dl><dt>{$rs.time}</dt><dd><em onclick="dingcomment({$rs.id})"><i class="si si-like"></i> <a class="agree{$rs.id}">{$rs.agree}</a></em> <span onclick="post_comment({$rs.id})"><i class="fa fa-commenting-o"></i> 回复</span>
						{if fun('Admin@sort',$info.fid)||fun('Admin@status_power')}<span onclick="yz_comment({$rs.id},$(this))"  class="comment_if_yz {$rs.status==0?'notyz':''}"><i class=" fa fa-ban"></i></span>{/if}
						{if $rs.uid==login_user('uid')||fun('Admin@sort',$info.fid)}<span onclick="del_comment({$rs.id})"><i class="fa fa-close"></i></span>{/if}
						</dd></dl>
						<div class="repalyinfs repalyinfs{$rs.id}">
							{volist name="rs.children" id="vo"}
							<div id="comment_cnt_{$vo.id}"><a href="{:get_url('user',$vo.uid)}" target="_blank">{$vo.username}：</a>{$vo.content}
								{if $vo.uid==login_user('uid')||fun('Admin@sort',$info.fid)}<span onclick="del_comment({$vo.id})" style="float:right;"><i class="fa fa-close"></i></span>{/if}
								{if fun('Admin@sort',$info.fid)||fun('Admin@status_power')}<span onclick="yz_comment({$vo.id},$(this))" style="float:right;" class="comment_if_yz {$vo.status==0?'notyz':''}"><i class=" fa fa-ban"></i></span>{/if}
							</div>
							{/volist}
						</div>
					</li>
				</ul>
			{/volist}
		</div>
		<div class="ShowMoreComment"><button type="butter" onclick="ShowMoreComment()">更多评论 <i class="fa fa-angle-double-down"></i></button></div>
	</div>

<script type="text/javascript" src="__STATIC__/libs/tncode/tn_code.js?wwf"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/libs/tncode/tn_code.css?fd"/>

<script type="text/javascript">
var comment_post_url,comment_base_url;
	comment_post_url=comment_base_url="{posturl}";
var repalyid=0;
var commentpage=1;

var comment_delete_url = "{:purl('comment/api/delete')}";

var needTncode = {:in_array($userdb['groupid'], $webdb['group_reply_need_tncode'])?'true':'false'};	//是否需要行为验证码
var cache_need_tncode = needTncode;
	
var comment_page_url = "{pageurl}";
var comment_rows = parseInt("{$cfg_array.rows}");
var comment_yz_url = "{:purl('comment/api/yz')}";
</script>
<script type="text/javascript" src="__STATIC__/js/comment/wap.js"></script>